﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ChiDao.Site.Models
{
    public class HolidayDocumentView
    {
        [Required]
        public Guid ID { get; set; }

        [Required]
        [StringLength(255)]
        public string RequestPerson { get; set; }

        [Required]
        [DataType(DataType.DateTime)]
        public DateTime RequestDate { get; set; }

        [StringLength(4000)]
        public string Description { get; set; }

        [Required]
        [StringLength(1)]
        public string HandleState { get; set; }

        private List<BaklogTaskView> _lstBaklogTask;
        public List<BaklogTaskView> lstBaklogTask
        {
            get
            {
                if (_lstBaklogTask == null)
                {
                    _lstBaklogTask = new List<BaklogTaskView>();
                }
                return _lstBaklogTask;
            }
            set
            {
                _lstBaklogTask = value;
            }
        }
    }
}
